void updateWithInput()
{
	if(isExpolde==0)
	{
		MOUSEMSG m;
		while(MouseHit())
		{
			m = GetMouseMsg();
			if(m.uMsg==WM_MOUSEMOVE)
			{
				position_x = m.x;
				position_y = m.y;
			}
			else if(m.uMsg==WM_LBUTTONDOWN)
			{
				bullet_x = position_x;
				bullet_y = position_y-85;
				mciSendString("close fgmusic",NULL,0,NULL);
				mciSendString("open D:\\f_gun.mps alias fgmusic",NULL,0,NULL);
				mciSendString("play fgmusic",NULL,0,NULL);
			}
		}
	}
}
void gameover()
{
	EndBatchDraw();
	getch();
	closegraph();
}
int main()
{
	startup();
	while(1)
	{
		show();
		updateWithoutInput;
		updateWithInput;
	}
	gameover();
	return 0;
} 
